package com.ruizhong.centercontroll.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.ruizhong.centercontroll.entity.TImage;

import java.util.List;
import java.util.Map;

public interface TImageService extends IService<TImage> {

    void saveNewImageList(List<Map<String, Object>> imageList, Integer pageId, boolean isNew);

    void deleteImagesByPageId(Integer pageId);

    List<TImage> getImagesByPageId(Integer pageId, Double pageWidth, Double pageHeight, Double aimPageWidth, Double aimPageHeight, Boolean display) throws JsonProcessingException;

    List<TImage> getImageIdsByPageId(Integer pageId);
}
